package cn.merryyou.generator.dto;

import java.util.HashMap;
import java.util.Map;

public class ResponseDto<T> extends HashMap<String, Object> {
    private static final long serialVersionUID = 1L;

    public ResponseDto(int code, String msg, T data) {
        put("code", code);
        put("msg", msg);
        put("data", data);
    }

    @Override
    public ResponseDto put(String key, Object value) {
        super.put(key, value);
        return this;
    }
}
